package org.jeecg.common.modules.settlement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: settlement
 * @Author: jeecg-boot
 * @Date:   2020-09-03
 * @Version: V1.0
 */
@Data
@TableName("settlement")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="settlement对象", description="settlement")
public class Settlement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
	/**结算金额*/
	@Excel(name = "结算金额", width = 15)
    @ApiModelProperty(value = "结算金额")
    private BigDecimal amount;
	/**关联id，患者购买医生服务关联订单表*/
	@Excel(name = "关联id，患者购买医生服务关联订单表", width = 15)
    @ApiModelProperty(value = "关联id，患者购买医生服务关联订单表")
    private String relationId;
	/**类型，1 购买服务结算*/
	@Excel(name = "类型，1 购买服务结算", width = 15)
    @ApiModelProperty(value = "类型，1 购买服务结算")
    private Integer type;
	/**状态  0 待结算， 1 结算中，2 已结算*/
	@Excel(name = "状态  0 待结算， 1 已结算", width = 15)
    @ApiModelProperty(value = "状态  0 待结算， 1 已结算")
    private Integer status;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
}
